@media (max-width: 400px) {
    .answer {
        width: 99%;
        font-size: 12px;
        height: 36px;
        line-height: 36px;
        padding-left: 4px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .katta h1,
    .kichik h1,
    .B {
        font-size: 15px !important;
        text-align: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    label.answer {
        font-size: 12px !important;
        text-align: center;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.B {
    position: sticky;
}

.katta h1 {
    width: 80%;
    height: 50px;
    border: 1px solid rgba(255, 0, 0, 0);
    margin-left: 200px;
}

.a {
    width: 60%;
    height: 70px;
    border: 1px solid rgb(0, 0, 0);
    font-size: xx-large;
    margin-left: 17%;
    padding-top: 11px;
    padding-left: 2%;
}

.butt {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    border: 1px solid rgba(255, 0, 0, 0);
}

.reset,
.next {
    width: 100px;
    height: 40px;
    border: 1px solid black;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    display: inline-block;
}


/* Test javoblari o'rtada va eni 60% */

.answer {
    display: block;
    width: 40%;
    height: 60px;
    border: 1px solid black;
    line-height: 60px;
    margin: 0 auto 8px auto;
    padding-left: 16px;
    font-size: 18px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10), 0 1.5px 4px 0 rgba(0, 0, 0, 0.08);
    text-align: center;
}

main {
    min-height: calc(100vh + 50px);
}


/* Responsive styles for test answers and buttons */

@media (max-width: 900px) {
    .answer {
        width: 90%;
        font-size: 16px;
        height: 50px;
        line-height: 50px;
        padding-left: 10px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .butt {
        height: 80px;
        gap: 16px;
    }
    .reset,
    .next {
        width: 90px;
        height: 36px;
        font-size: 15px;
    }
    main {
        min-height: calc(100vh + 20px);
    }
    .katta h1,
    .kichik h1,
    .B {
        text-align: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .katta, .kichik {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .answer {
        width: 98%;
        font-size: 15px;
        height: 44px;
        line-height: 44px;
        padding-left: 6px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .butt {
        height: 60px;
        gap: 8px;
    }
    .reset,
    .next {
        width: 80px;
        height: 30px;
        font-size: 13px;
    }
    main {
        min-height: 100vh;
    }
    .katta h1,
    .kichik h1,
    .B {
        text-align: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .katta, .kichik {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .answer {
        width: 99%;
        font-size: 12px;
        height: 36px;
        line-height: 36px;
        padding-left: 4px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .katta h1,
    .kichik h1,
    .B {
        font-size: 15px !important;
        text-align: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    label.answer {
        font-size: 12px !important;
        text-align: center;
    }
    .katta, .kichik {
        align-items: center;
        justify-content: center;
    }
}

/* Center and wrap long question lines */
.katta h1, .kichik h1, .B {
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
    word-break: break-word;
    white-space: normal;
}

/* Center test blocks and inner blocks */
.katta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}
.kichik {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}